import request from '@/utils/request'

// 查询评论回复列表
export function listCommentReplies(query) {
  return request({
    url: '/system/commentReplies/list',
    method: 'get',
    params: query
  })
}

// 查询评论回复详细
export function getCommentReplies(replyId) {
  return request({
    url: '/system/commentReplies/' + replyId,
    method: 'get'
  })
}

// 新增评论回复
export function addCommentReplies(data) {
  return request({
    url: '/system/commentReplies',
    method: 'post',
    data: data
  })
}

// 修改评论回复
export function updateCommentReplies(data) {
  return request({
    url: '/system/commentReplies',
    method: 'put',
    data: data
  })
}

// 删除评论回复
export function delCommentReplies(replyId) {
  return request({
    url: '/system/commentReplies/' + replyId,
    method: 'delete'
  })
}
